package com.pashanhoo.designpatterns.singleton;

/**懒汉式（线程不安全）
 * @author 胡庆安
 * @version V1.0
 * @Package designpatterns.singleton
 * @date 2020/10/27 16:44
 * @Copyright © 2010-2020 爬山虎科技（扬州）股份有限公司
 */
public class LazyUnSafe {
    private static LazyUnSafe singleton;

    private LazyUnSafe() {}

    public static LazyUnSafe getInstance() {
        if (singleton == null) {
            singleton = new LazyUnSafe();
        }
        return singleton;
    }
}
